package com.w.proxy.proxy.advice.huangyong;

import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
import org.springframework.stereotype.Component;

@Component
public class GreetingIntroductionAdvice extends DelegatingIntroductionInterceptor implements IntroApi {
    @Override
    public Object invoke(MethodInvocation mi) throws Throwable {
        return super.invoke(mi);
    }

    @Override
    public void intro() {
        System.out.println("This is Intro");
    }
}
